package com.hhf.feiojquestionservice.service;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hhf.feiojcommonservice.model.entity.QuestionSubmit;
import com.hhf.feiojcommonservice.model.entity.User;
import com.hhf.feiojquestionservice.model.dto.questionsubmit.QuestionSubmitAddRequest;
import com.hhf.feiojquestionservice.model.dto.questionsubmit.QuestionSubmitQueryRequest;
import com.hhf.feiojquestionservice.model.vo.QuestionSubmitVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author 86138
* @description 针对表【question_submit(问题提交)】的数据库操作Service
* @createDate 2024-10-25 20:01:26
*/
public interface QuestionSubmitService extends IService<QuestionSubmit> {

    long doQuestionSubmit(QuestionSubmitAddRequest questionSubmitAddRequest, User loginUser);

    QueryWrapper<QuestionSubmit> getQueryWrapper(QuestionSubmitQueryRequest questionSubmitQueryRequest);

    QuestionSubmitVO getQuestionSubmitVO(QuestionSubmit questionSubmit, User loginUser);

    Page<QuestionSubmitVO> getQuestionSubmitVOPage(Page<QuestionSubmit> questionSubmitPage, HttpServletRequest request);
}
